/**
 * 
 */
package com.changil.admin.protocol.http.request;

import org.apache.http.message.BasicNameValuePair;

import com.changil.admin.protocol.http.HttpUtil;
import com.changil.admin.util.PasswordUtil;

/**
 * @author skplanet
 *
 */
public class LoginRequest extends BasePostHttpRequest {
	private String mId;
	private String mPassword;
	public LoginRequest(String id, String password) {
		mId = id;
		mPassword = password;
	}

	@Override
	protected void setParams() {
		mPath = "/users/login";
		mParams.add(new BasicNameValuePair("id", mId));
		mParams.add(new BasicNameValuePair("password", mPassword));
	}
	
	@Override
	public String request() {
		setParams();
		return HttpUtil.post(mPath,mParams);
	}
}
